#ifndef FactoryMode_SeedKey_H_
#define FactoryMode_SeedKey_H_


/*=======[M A C R O S]========================================================*/
#define  OK        0x00
#define  NOT_OK    0x01

/*=======[E X T E R N A L   F U N C T I O N   D E C L A R A T I O N S]========*/
/*************************************************************************/
/*
 * Brief               This service calculated key accord with seed and keyK
 * Sync/Async          Synchronous
 * Reentrancy          Non Reentrant
 * Param-Name[in]      seed: Latest requested seed
 * Param-Name[in]      keyK: ECU permanent specific parameter for calculat-ing
 *                           the key, this value is provided by OEM
 * Param-Name[in/out]  None
 * Param-Name[out]     key:  Calculated key accord with seed and keyK
 * Return              OK 0x00:    Calculate success
 *                     NOT_OK 0x01:Calculate failure
 * PreCondition        None
 */
/*************************************************************************/
extern unsigned char FactoryMode_ComputeKey(unsigned long seed,unsigned long KeyK,unsigned long *key);

#endif /*FactoryMode_SeedKey_H_*/


/*=======[E N D   O F   F I L E]==============================================*/


